#ifndef NR_CLIENT_DATAACQUISITION_H
#define NR_CLIENT_DATAACQUISITION_H

#include <QtGui/QWidget>
#include <QStandardItemModel>
#include <QTableView>
#include <QDateTime>
#include "nr_object_manager.h"
#include "nr_client_device_tree.h"
#include "nr_client_communication.h"
#include "nr_client_historyDataQuery_settings.h"
#include "nr_client_mainwindow.h"

namespace Ui
{
	class subwindow1;
}

class subwindow1 : public QWidget
{
	Q_OBJECT

public:
	subwindow1(QWidget *parent = 0, Qt::WFlags flags = 0);
	~subwindow1();
	void set_device_TreeWidgetItem(DeviceTreeWidgetItem &_device_TreeWidgetItem);
	void set_device_type_manager(nr_device_type_manager &_device_type_manager);
	void set_DataCommunication(client_Communication &data);
	void set_querydata_Communication();
	//void set_client_dataAcquisition(mainwindow &_mainwindow);


private:

	Ui::subwindow1* ui;

	DeviceTreeWidgetItem* m_device_TreeWidgetItem;
	nr_device_type_manager* m_device_type_manager;
	nr_device_item* m_deviceitem;
	DeviceTreeWidgetItem* deviceitem;
	client_Communication* m_clientdeviceTree;
	//mainwindow* m_mainwindow;
/*	QWidget* m_last_mdiArea_Widget;*/
 
// 	QWidget& _last_mdiArea_Widget;
/*	QWidget* last_mdiArea_Widget = m_last_mdiArea_Widget->get_last_mdiArea_Widget();*/
	// 	QDateTime* startdatetime;
	
// 	QDateTime* enddatetime;

	//client_Communication *m_data;


	private slots:
		void on_showdata(nr_data* data);
		void on_pbhisquery_clicked();
		void on_showhisdata( QList<nr_data*>& data_list);
		
};

#endif // SUBWINDOW1_H
